﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Loginaspx.aspx.cs" Inherits="RosarioFinanzas.Loginaspx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

    <link href="CSS/Login.css?ver=1.1" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    <div id="Datosloginaspx">
        <asp:LoginView ID="LoginView1" runat="server">
            <AnonymousTemplate>
                <asp:Login ID="Login1" runat="server" LoginButtonText="" LoginButtonType="Image" 
            Orientation="Horizontal" TextLayout="TextOnTop" TitleText="" CreateUserText="Registrate" CreateUserUrl="~/Registrese.aspx" DisplayRememberMe="False" LoginButtonImageUrl="~/Imagenes/botonusr.jpg" PasswordLabelText="Constraseña:" PasswordRecoveryText="¿Has olvidado tu contraseña?" PasswordRecoveryUrl="~/RecuperarPassword.aspx" UserNameLabelText="Usuario:">
                    <LabelStyle CssClass="usrComentario" />
                    <LayoutTemplate>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <table cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="usrComentario">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Usuario:</asp:Label>
                                            </td>
                                            <td class="usrComentario">
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Constraseña:</asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" CssClass="usr"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="El Nombre de Usuario es requerido." ToolTip="El Nombre de Usuario es requerido." ForeColor="White" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" CssClass="pwd" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="La Contraseña es requerida." ToolTip="La Contraseña es requerida." ValidationGroup="Login1" ForeColor="White">*</asp:RequiredFieldValidator>
                                            </td>
                                            <td align="right">
                                                <asp:ImageButton ID="LoginImageButton" runat="server" CommandName="Login" CssClass="botonLogin" ImageUrl="~/Imagenes/botonusr.jpg" ValidationGroup="Login1" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" style="color:white;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="usrComentario">
                                                <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/Registrese.aspx" Target="_parent">Registrate gratis</asp:HyperLink>
                                            </td>
                                            <td colspan="2" class="usrComentario">
                                                <asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/RecuperarPassword.aspx"  Target="_parent">¿Has olvidado tu contraseña?</asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <LoginButtonStyle CssClass="botonLogin" />
                    <TextBoxStyle CssClass="pwd" />
                </asp:Login>
            </AnonymousTemplate>
            <LoggedInTemplate>
                <table cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td class="login" style="width:80%;">Usuario

                    </td>
                        <td class="login"></td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:LoginName ID="LoginName1" runat="server" CssClass="usr" />
                    </td>
                        <td>
                            <asp:LoginStatus ID="LoginStatus1" runat="server" CssClass="login" LoginText="" LogoutText="Salir" />
                        </td>
                    </tr>
                    
                </table>
                
                
            </LoggedInTemplate>
        </asp:LoginView>
    </div>
    </form>
</body>
</html>
